import pytz
from django.utils import timezone


def get_now_time():
    tz = pytz.timezone('Asia/Shanghai')
    end_time = timezone.now().astimezone(tz=tz).strftime("%Y-%m-%d %H:%M:%S")
    return end_time
